package code.bigmama.controller;

import java.util.HashMap;

import code.bigmama.context.ChildProfileContext;

public class ChildrenController extends java.lang.Object
{
	public static ChildrenController _instance;
	
	HashMap<String, ChildProfileContext> mMap = new HashMap<String, ChildProfileContext>(); 
	
	private ChildrenController() 
	{
		super();
	}
	
	static public ChildrenController getInstance()
	{

		if (_instance == null)
		{
			_instance = new ChildrenController();
		}

		return _instance;
	}
	
	public void setChildProfild(String name, ChildProfileContext context)
	{
		mMap.put(name, context);
	}
	
	
	public ChildProfileContext getChildProfile(String name)
	{
		return mMap.get(name);
	}
	
	
}
